/** 事件状态枚举 */
import BaseEnum from './BaseEnum';
const $t = i18n.t.bind(i18n);
//TODO: 添加color字段
class EventStateEnum extends BaseEnum{
  constructor(){
    super();

    this.CREATED = {
      name: $t('common.event.stateProcess.created'),
      value: 'created'
    };

    this.ALLOCATED = {
      name: $t('common.event.stateProcess.allocated'),
      value: 'allocated'
    };

    this.PROCESSING = {
      name: $t('common.event.stateProcess.processing'),
      value: 'processing'
    };
    
    this.FINISHED = {
      name: $t('common.base.usualStatus.finish'),
      value: 'finished'
    };

    this.OFFED = {
      name: $t('common.event.stateProcess.offed'),
      value: 'offed'
    };


    this.CONVERT_2_TASK = {
      name: $t('common.event.stateProcess.convert2Task'),
      value: 'convert2Task'
    }
  }
}

export default new EventStateEnum();